package com.itheima.homework.homework03;

public class Test {
    public static void main(String[] args) {
        Person p = new Person("老王",30);
        Dog dog = new Dog(2,"黑");
        p.keepPet(dog,"骨头");

        Person p1 = new Person("老李",25);
        Cat cat = new Cat(3,"灰");
        p1.keepPet(cat,"鱼");
    }
}
